package com.lz.core;

import io.vertx.core.Vertx;

/**
 * l..
 *
 * @author Lizhong
 * @date 2019/9/4
 */
public class l {
    public void method01() {
        Vertx vertx = Vertx.vertx();
        vertx.createHttpServer().requestHandler(req -> {
            req.response()
                    .putHeader("content-type", "text/html")
                    .end("<html><body><h1>Hello from " + this + "</h1></body></html>");
        }).listen(8080);
    }
}
